const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    createProxyMiddleware('/api/', {
      target: 'http://192.168.0.105:4523/m1/3930088-0-default/',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    })
  );
};
